.PHONY: clean all

EXE = Plugin
ROOTSRC	= $(wildcard *.c)
ROOTOBJ	= $(ROOTSRC:%.c=%.o)
SUBSRC	= $(shell find $(SUBDIR) -name '*.c')
SUBOBJ	= $(SUBSRC:%.c=%.o)

all: ${EXE}
${EXE}: ${ROOTOBJ}
	$(CC) -o $@ $^ $(LDFLAGS)
#	${STRIP} ${EXE}
	@echo "\n\nmake plugin end!"

.c.o:
	${CC} ${CFLAGS} -fPIC -c $< -o $@

#%.o : %.c
#	$(CC) $(INCLUDE) $(CFLAGS) -c $^ -o $@

clean : 
	rm -f *.o *.so ${EXE}

